package com.nazca.tvremote.event;

import org.json.JSONException;
import org.json.JSONObject;

public final class RemoteInputEvent extends RemoteEvent {
	
	private String mInputEvent;
	
	public RemoteInputEvent(String value){
		mInputEvent = value;
	}
	
	@Override
	public String toString() {
		JSONObject json = new JSONObject();
		try {
			json.put("EventType", "InputEvent");
			
			JSONObject event = new JSONObject();
			json.put("Event", event);
			
			event.put("value", mInputEvent);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return json.toString();
	}
	
}
